<div id="forgot" class="forgot_password" >
	<% if !@user %>
		<% form_for :user do|f| %>
			<p>请输入您注册时的邮箱和用户名</p>
			<%= text_field_for f, :username, @user,{:text => "用户名", :required => true}-%>
			<%= text_field_for f, :email, @user,{ :text => "电子邮箱", :required => true}-%>
			<div class="submit">
				<%= submit_tag "提交" -%>
			</div>
		<% end %>
	<% else %>
		
		<p>我们已将忘记密码所需信息发送到了您的邮箱，请注意查收,如果您收到了多封邮件，请以最新的为准。</p>
		<div id="resent_mail">
			<p>如果您还没接收到邮件，您可以点此<%= link_to_remote "重新发送",:url => {  :controller => "admin/users",
																			    :action => :resent_mail, 
	                                                                            :username => @user.username },
																	  :update => "resent_mail"
										 %>
			</p>
		</div>
	<% end %>	
</div>